package zhibi.wechat.mp.domain;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

import static zhibi.wechat.mp.extra.context.BaseConfig.TABLE_PREFIX;

@Table(name = TABLE_PREFIX + "newsitem")
public class NewsItem implements Serializable {

    @Id
    @Column(name = "id")
    private String mediaId;
    private String url;
    private Date createdTime;
    private Date updatedTime;

    private String articleids;
    private String articles;

    public String getArticleids() {
        return articleids;
    }

    public void setArticleids(String articleids) {
        this.articleids = articleids;
    }

    public String getArticles() {
        return articles;
    }

    public void setArticles(String articles) {
        this.articles = articles;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
